import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import a from './views/a'
import b from './views/b'

const routes = [
  { path: '/test/a', component: a },
  { path: '/test/b', component: b }
]

const router = new VueRouter({
  mode: 'history',
  routes // (缩写) 相当于 routes: routes
})



Vue.config.productionTip = false
// 现在，应用已经启动了！
Vue.use(VueRouter)
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
